package vip.xiaonuo.sys.modular.question.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;
import vip.xiaonuo.core.annotion.Permission;
import vip.xiaonuo.core.pojo.response.ResponseData;
import vip.xiaonuo.core.pojo.response.SuccessResponseData;
import vip.xiaonuo.sys.modular.question.entity.Smallquestionfo;
import vip.xiaonuo.sys.modular.question.service.SmallquestionfoService;

import javax.annotation.Resource;

/**
 * 问卷统计
 */
@Controller
public class SmallquestionfoController {

    @Resource
    private SmallquestionfoService smallquestionfoService;

    @Permission
    @ResponseBody
    @GetMapping("/smallquestio/orgStatic")
    public ResponseData orgStatic(Smallquestionfo smallquestionfo){
        return new SuccessResponseData(smallquestionfoService.orgStatic(smallquestionfo));
    }
}
